Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@alchemy/aa-core
Advanced tools
viem based SDK that enables interactions with ERC-4337 Smart Accounts. ABIs are based off the definitions generated in @account-abstraction/contracts
@alchemy/aa-core
This package contains the core interfaces and components for interacting with 4337 infrastructure. The primary interfaces that it exports are the SmartAccountProvider
and BaseSmartContractAccount
.
The SmartAccountProvider
is an EIP-1193 compliant Provider that wraps JSON RPC methods and some Wallet Methods (signing, sendTransaction, etc). With this Provider, you can submit User Operations to RPC providers, estimate gas, configure a Paymaster, send standard JSON RPC requests, and more. It is not opinionated about which RPC provider you are using and is configurable to work with any RPC provider. Because it implements EIP-1193, it can be used with any web3 library.
The BaseSmartContractAccount
interface defines how you would interact with your Smart Contract Account. Any class that extends BaseSmartContractAccount
may also expose additional methods that allow its connecting SmartAccountProvider
to provide ergonomic utilities for building and submitting User Operation
s.
To get started, first install the package:
yarn add @alchemy/aa-core
npm i -s @alchemy/aa-core
pnpm i @alchemy/aa-core
You can create a provider like so:
import { createMultiOwnerModularAccount } from "@alchemy/aa-accounts";
import {
LocalAccountSigner,
SmartAccountSigner,
createSmartAccountClient,
polygonMumbai,
} from "@alchemy/aa-core";
import { http } from "viem";
const chain = polygonMumbai;
const signer: SmartAccountSigner = LocalAccountSigner.mnemonicToAccountSigner(
"YOUR_OWNER_MNEMONIC"
);
const rpcTransport = http("https://polygon-mumbai.g.alchemy.com/v2/demo");
export const smartAccountClient = createSmartAccountClient({
transport: rpcTransport,
chain,
account: await createMultiOwnerModularAccount({
transport: rpcTransport,
chain,
signer,
}),
});
4.0.0-beta.0 (2024-08-28)
move plugingen from aa-sdk to account-kit since it depends on smart-contracts (073e8f6)
split aa-alchemy into account-kit packages (#704) (55e6632), closes #706
refactor!: move chain definitions out of aa-sdk core (#772) (1385441), closes #772
moves the chain definitions out of aa-sdk core and into account-kit/infra
@alchemy/plugingen has been moved to @account-kit/plugingen
@alchemy/aa-_ packages have been renamed to @aa-sdk/_
this removes the @alchemy/aa-alchemy package in favor of @account-kit/*
@alchemy/aa-accounts was deleted in favor of @account-kit/accounts
refactor: further rename packages
FAQs
viem based SDK that enables interactions with ERC-4337 Smart Accounts. ABIs are based off the definitions generated in @account-abstraction/contracts
The npm package @alchemy/aa-core receives a total of 0 weekly downloads. As such, @alchemy/aa-core popularity was classified as not popular.
We found that @alchemy/aa-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.